<!doctype html>
<html lang="zh-hans">
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/style.css">
    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="common.js"></script>
    <script>
        window.onload = checkLog;
    </script>
</head>

<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light title">
    <a class="navbar-brand title">二手交易平台</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item headline">
                <a class="nav-link" href="index.html">待售商品</a>
            </li>
            <li class="nav-item headline">
                <a class="nav-link" href="needs.html">需求商品</a>
            </li>
            <li class="nav-item headline">
                <a class="nav-link" href="sg_publish.html">发布商品</a>
            </li>
            <li class="nav-item headline">
                <a class="nav-link" href="wg_publish.html">发布需求</a>
            </li>
            <li class="nav-item headline">
                <a class="nav-link" href="personal.html">个人中心</a>
            </li>
            <li class="nav-item headline-current">
                <a class="nav-link" href="login.html" id="logstatus">登录/注册</a>
            </li>
        </ul>
    </div>
</nav>

<div class="text-center">
    <img src="images/login.png" style="width: 100px;margin-top: 50px">

    <form id="loginedit">
        <label for="U_id" class="sr-only">Username</label>
        <input name="U_id" id="U_id" type="text" placeholder="请输入QQ号" style="width: 800px;margin-top: 50px" required autofocus>

        <label for="U_password" class="sr-only">Password</label>
        <input name="U_password" id="U_password" type="password" placeholder="请输入密码" style="width: 800px;margin-top: 50px" required>
    </form>

    <button id="loginform_submit" class="btn btn-lg btn-primary btn-block" style="width: 200px;margin-top: 100px;margin-left: 666px" onclick="login()">登录</button>
    <button id="regist_account"  style="width: 150px;margin-left: 650px" onclick="window.location.href='register.html'">注册新账号</button>
</div>
</body>
</html>
